DibiDriverException #1048

Column 'message' cannot be null

Source file

File: /domains1/do1820800/public/www_root/liveclass/libs/dibi/dibi.min.php   Line: 1144

Line 1137:    new
Line 1138:    DibiDriverException(mysql_error($this->connection),mysql_errno($this->connection));}}if(isset($config['sqlmode'])){$this->query("SET sql_mode='$config[sqlmode]'");}$this->query("SET time_zone='".date('P')."'");$this->buffered=empty($config['unbuffered']);}public
Line 1139:    function
Line 1140:    disconnect(){mysql_close($this->connection);}public
Line 1141:    function
Line 1142:    query($sql){if($this->buffered){$res=@mysql_query($sql,$this->connection);}else{$res=@mysql_unbuffered_query($sql,$this->connection);}if(mysql_errno($this->connection)){throw
Line 1143:    new
Line 1144:    DibiDriverException(mysql_error($this->connection),mysql_errno($this->connection),$sql);}elseif(is_resource($res)){return$this->createResultDriver($res);}}public
Line 1145:    function
Line 1146:    getInfo(){$res=array();preg_match_all('#(.+?): +(\d+) *#',mysql_info($this->connection),$matches,PREG_SET_ORDER);if(preg_last_error())throw
Line 1147:    new
Line 1148:    DibiPcreException;foreach($matches
Line 1149:    as$m){$res[$m[1]]=(int)$m[2];}return$res;}public
Line 1150:    function
Line 1151:    getAffectedRows(){return

Call stack

  1. dibi/dibi.min.php (266) source   DibiMySqlDriver-> query (arguments )

  2. dibi/dibi.min.php (249) source   DibiConnection-> nativeQuery (arguments )

  3. dibi/dibi.min.php (983) source   DibiConnection-> query (arguments )

  4. models/MessageManager.php (30) source   dibi:: query (arguments )

  5. presenters/HomepagePresenter.php (38) source   MessageManager-> addMessage (arguments )

  6. <PHP inner-code> HomepagePresenter-> renderMessage ()

  7. Reflection/MethodReflection.php (76) source   ReflectionMethod-> invokeArgs (arguments )

  8. Application/PresenterComponent.php (94) source   MethodReflection-> invokeNamedArgs (arguments )

  9. Application/Presenter.php (205) source   PresenterComponent-> tryCall (arguments )

  10. Application/Application.php (144) source   Presenter-> run (arguments )

  11. app/bootstrap.php (63) source   Application-> run ()

  12. web/index.php (13) source   require (arguments )

Nette Application

Environment

HTTP request

HTTP response